package kr.co.m2soft.model
{
	import kr.co.m2soft.model.document.MML;

	public class CommonModel
	{
		private static var _instance:CommonModel;
		public var mml:MML;
		public var pageIndex:int = 0;
		public var seletedPageIndex:int = 0;
		
		public static function getInstance():CommonModel {
			if (_instance == null) _instance = new CommonModel(new SingletonEnforcer());
			return _instance;
		}
		
		public function CommonModel(s:SingletonEnforcer )
		{
			if (s == null) throw new Error("Singleton, use MySingleton.instance");
		}
		
	}
}
class SingletonEnforcer {}